import axios from "@/axios";

export const doGet = function (url, param) {
  return axios({
    url: url,
    method: "get",
    params: param,
  });
};
export const doPost = function (url, param) {
  return axios({
    url: url,
    method: "post",
    data: param,
  });
};
export const doPut = function (url, param) {
  return axios({
    url: url,
    method: "put",
    data: param,
  });
};
export const doDelete = function (url, param) {
  return axios({
    url: url,
    method: "delete",
    data: param,
  });
};
